import request from '@/utils/request'

// 查询色系表列表
export function listColorScheme(query) {
  return request({
    url: '/ruoyiyinzheng/colorScheme/list',
    method: 'get',
    params: query
  })
}

// 查询色系表详细
export function getColorScheme(id) {
  return request({
    url: '/ruoyiyinzheng/colorScheme/' + id,
    method: 'get'
  })
}

// 新增色系表
export function addColorScheme(data) {
  return request({
    url: '/ruoyiyinzheng/colorScheme',
    method: 'post',
    data: data
  })
}

// 修改色系表
export function updateColorScheme(data) {
  return request({
    url: '/ruoyiyinzheng/colorScheme',
    method: 'put',
    data: data
  })
}

// 删除色系表
export function delColorScheme(id) {
  return request({
    url: '/ruoyiyinzheng/colorScheme/' + id,
    method: 'delete'
  })
}
